package com.detu.ivos.vehicle.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class VehicleSaveParam {
    @ApiModelProperty(value = "车辆id")//
    private Long id;
    @ApiModelProperty(value = "车辆品牌")//
    private String brand;
    @ApiModelProperty(value = "车牌号")//
    private String license;
    @ApiModelProperty(value = "车辆型号")//
    private String model;
    @ApiModelProperty(value = "车辆识别码")//
    private String code;
    @ApiModelProperty(value = "车辆排量")//
    private String displacement;
    @ApiModelProperty(value = "车辆类型")//
    private String type;
    @ApiModelProperty(value = "车辆颜色")//
    private String color;
    @ApiModelProperty(value = "车辆里程数")//
    private String kilometers;
    //前端传过来的日期2024-12-12是字符串类型,如果想要赋值给Java Date类型的属性,需要使用此注解转换
    //否则会出现400 TypeMismatchException类型不匹配异常
    @ApiModelProperty(value = "车辆上牌时间")//
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date regTime;
    @ApiModelProperty(value = "车辆购买时间")//
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date buyTime;
    @ApiModelProperty(value = "车辆购买价格")//
    private String price;
    @ApiModelProperty(value = "车辆电池类型")//
    private String batteryType;
    @ApiModelProperty(value = "电子围栏绑定状态")
    private String geofenceBindStatus;
    @ApiModelProperty(value = "电子围栏id")
    private Long geofenceId;
}
